<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]>      <html class="no-js"> <!--<![endif]-->
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title></title>
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="stylesheet" href="" />
  </head>
  <body>
    <script>
      let arr = [
        {
          action: "101",
          format: 0,
          id: 340,
          name: "陈先清",
          message: "33074",
          messageId: 33078,
          msgList: [],
          isTop: false,
          isNotTip: true,
          timestamp: 1656835679000,
          sourceId: "5005f5351b0f4b1bb92d07c278faa766",
          sourceType: 1,
          type: "user",
          state: 0,
          memberList: [],
          refer: {
            id: "5005f5351b0f4b1bb92d07c278faa766",
            sourceId: "5005f5351b0f4b1bb92d07c278faa766",
            name: "陈先清",
            type: "user",
          },
          hasAll: true,
        },
        {
          action: "311",
          badge: 0,
          newmsgcount: 0,
          format: 0,
          id: 337,
          name: "9999发发发va",
          message: "bd9e7de9cb0b406bab58c77187796656",
          messageId: 32078,
          msgList: [
            {
              id: 30573,
              format: "0",
              msgtype: "0",
              action: "3",
              sender: "164",
              issend: true,
              receiver: "164",
              unread: false,
              timestamp: 1656743573000,
              createTime: 1656743573000,
              msg: "，，",
              content: "，，",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "00279c336a2a4d8091aa9ecba20450f6",
              fileName: "",
              fileSize: "",
              userInfo: {
                id: "00279c336a2a4d8091aa9ecba20450f6",
                name: "王  洁",
              },
            },
            {
              id: 30576,
              format: "0",
              msgtype: "0",
              action: "3",
              sender: "164",
              issend: true,
              receiver: "164",
              unread: false,
              timestamp: 1656743577000,
              createTime: 1656743577000,
              msg: "发广告",
              content: "发广告",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "00279c336a2a4d8091aa9ecba20450f6",
              fileName: "",
              fileSize: "",
              userInfo: {
                id: "00279c336a2a4d8091aa9ecba20450f6",
                name: "王  洁",
              },
            },
            {
              id: 31272,
              format: "0",
              msgtype: "0",
              action: "304",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656753362000,
              createTime: 1656753362000,
              msg: "嗯嗯嗯",
              content: "嗯嗯嗯",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31273,
              format: "0",
              msgtype: "0",
              action: "304",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656753377000,
              createTime: 1656753377000,
              msg: "嗯嗯嗯",
              content: "嗯嗯嗯",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31284,
              format: "0",
              msgtype: "0",
              action: "304",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656753636000,
              createTime: 1656753636000,
              msg: "890",
              content: "890",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31305,
              format: "0",
              msgtype: "0",
              action: "304",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656754028000,
              createTime: 1656754028000,
              msg: "999",
              content: "999",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31308,
              format: "0",
              msgtype: "0",
              action: "304",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656754293000,
              createTime: 1656754293000,
              msg: "990",
              content: "990",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31318,
              format: "0",
              msgtype: "0",
              action: "304",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656754784000,
              createTime: 1656754784000,
              msg: "9999",
              content: "9999",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31320,
              format: "0",
              msgtype: "0",
              action: "304",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656754805000,
              createTime: 1656754805000,
              msg: "9999发发发va",
              content: "9999发发发va",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31356,
              format: "0",
              msgtype: "0",
              action: "311",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656755983000,
              createTime: 1656755983000,
              msg: "d29e1cfae2754bbdac33c731f72df7bd",
              content: "d29e1cfae2754bbdac33c731f72df7bd",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "00279c336a2a4d8091aa9ecba20450f6",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31358,
              format: "0",
              msgtype: "0",
              action: "311",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656756105000,
              createTime: 1656756105000,
              msg: "ba06b43a97a74c0482bf247770f51598",
              content: "ba06b43a97a74c0482bf247770f51598",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "00279c336a2a4d8091aa9ecba20450f6",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31360,
              format: "0",
              msgtype: "0",
              action: "311",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656756162000,
              createTime: 1656756162000,
              msg: "40ef0bd4a5db40e2ba2cdfb7c5a45350",
              content: "40ef0bd4a5db40e2ba2cdfb7c5a45350",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "00279c336a2a4d8091aa9ecba20450f6",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31362,
              format: "0",
              msgtype: "0",
              action: "311",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656756220000,
              createTime: 1656756220000,
              msg: "e5c51ad3a07b485793050af3081373cf",
              content: "e5c51ad3a07b485793050af3081373cf",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "00279c336a2a4d8091aa9ecba20450f6",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31363,
              format: "0",
              msgtype: "0",
              action: "304",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656756244000,
              createTime: 1656756244000,
              msg: "9090",
              content: "9090",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31690,
              format: "0",
              msgtype: "0",
              action: "311",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656758175000,
              createTime: 1656758175000,
              msg: "8b9601e88c58463881c1bd3ad3ff7a7b",
              content: "8b9601e88c58463881c1bd3ad3ff7a7b",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "00279c336a2a4d8091aa9ecba20450f6",
              fileName: "",
              fileSize: "",
            },
            {
              id: 31692,
              format: "0",
              msgtype: "0",
              action: "311",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656758238000,
              createTime: 1656758238000,
              msg: "c3fbc34179664ea59d4b1e76f186b421",
              content: "c3fbc34179664ea59d4b1e76f186b421",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "00279c336a2a4d8091aa9ecba20450f6",
              fileName: "",
              fileSize: "",
            },
            {
              id: 32059,
              format: "0",
              msgtype: "0",
              action: "311",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656759289000,
              createTime: 1656759289000,
              msg: "58b1334d688941aebb9c24ddc1c00cfc",
              content: "58b1334d688941aebb9c24ddc1c00cfc",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "00279c336a2a4d8091aa9ecba20450f6",
              fileName: "",
              fileSize: "",
            },
            {
              id: 32078,
              format: "0",
              msgtype: "0",
              action: "311",
              sender: "164",
              issend: false,
              receiver: "",
              unread: false,
              timestamp: 1656759686000,
              createTime: 1656759686000,
              msg: "bd9e7de9cb0b406bab58c77187796656",
              content: "bd9e7de9cb0b406bab58c77187796656",
              imgsrc: "",
              videosrc: "",
              emojsrc: "",
              title: "",
              extra: "00279c336a2a4d8091aa9ecba20450f6",
              fileName: "",
              fileSize: "",
            },
          ],
          isTop: false,
          isNotTip: true,
          timestamp: 1656759686000,
          sourceId: "164",
          sourceType: 2,
          type: "group",
          state: 0,
          memberList: [
            {
              groupId: 164,
              uid: "00279c336a2a4d8091aa9ecba20450f6",
              type: 1,
              name: "王  洁",
            },
            {
              groupId: 164,
              uid: "fa4abaa5dd8c43188e978f5dd30c1dc3",
              type: 0,
              name: "童家格",
            },
            {
              groupId: 164,
              uid: "1ae54f45881646139567a0573e96f410",
              type: 0,
              name: "沈孝伟",
            },
            {
              groupId: 164,
              uid: "d29e1cfae2754bbdac33c731f72df7bd",
              type: 0,
              name: "彭  巍",
            },
            {
              groupId: 164,
              uid: "ba06b43a97a74c0482bf247770f51598",
              type: 0,
              name: "杜锡兵",
            },
            {
              groupId: 164,
              uid: "40ef0bd4a5db40e2ba2cdfb7c5a45350",
              type: 0,
              name: "徐  辉",
            },
            {
              groupId: 164,
              uid: "e5c51ad3a07b485793050af3081373cf",
              type: 0,
              name: "王  琪",
            },
            {
              groupId: 164,
              uid: "8b9601e88c58463881c1bd3ad3ff7a7b",
              type: 0,
              name: "杜焕甫",
            },
            {
              groupId: 164,
              uid: "c3fbc34179664ea59d4b1e76f186b421",
              type: 0,
              name: "束武彬",
            },
            {
              groupId: 164,
              uid: "58b1334d688941aebb9c24ddc1c00cfc",
              type: 0,
              name: "马利杰",
            },
            {
              groupId: 164,
              uid: "bd9e7de9cb0b406bab58c77187796656",
              type: 0,
              name: "许云波",
            },
          ],
          refer: {
            id: "164",
            sourceId: "164",
            name: "9090",
            type: "group",
          },
          uid: "00279c336a2a4d8091aa9ecba20450f6",
          hasAll: true,
        },
        {
          action: "0",
          format: 0,
          id: 327,
          name: "童家格",
          message: "地点",
          messageId: 31078,
          msgList: [],
          isTop: false,
          isNotTip: false,
          timestamp: 1656751081000,
          sourceId: "fa4abaa5dd8c43188e978f5dd30c1dc3",
          sourceType: 1,
          type: "user",
          state: 0,
          memberList: [],
          refer: {
            id: "fa4abaa5dd8c43188e978f5dd30c1dc3",
            sourceId: "fa4abaa5dd8c43188e978f5dd30c1dc3",
            name: "童家格",
            type: "user",
          },
          hasAll: true,
        },
        {
          action: "311",
          format: 0,
          id: 279,
          name: "王  洁,杜锡兵,罗茂学",
          message: "0,1",
          messageId: 30939,
          msgList: [],
          isTop: false,
          isNotTip: false,
          timestamp: 1656749232000,
          sourceId: "153",
          sourceType: 2,
          type: "group",
          state: 10,
          memberList: [
            {
              groupId: 153,
              uid: "00279c336a2a4d8091aa9ecba20450f6",
              type: 1,
              name: "王  洁",
            },
            {
              groupId: 153,
              uid: "ba06b43a97a74c0482bf247770f51598",
              type: 0,
              name: "杜锡兵",
            },
            {
              groupId: 153,
              uid: "d6761f43bb4c43e6b314062a34e6c386",
              type: 0,
              name: "罗茂学",
            },
            {
              groupId: 153,
              uid: "0",
              type: 0,
            },
            {
              groupId: 153,
              uid: "1",
              type: 0,
              name: "yang",
            },
          ],
          refer: {
            id: "153",
            sourceId: "153",
            name: "2222学",
            type: "group",
          },
          uid: "00279c336a2a4d8091aa9ecba20450f6",
          hasAll: true,
        },
        {
          action: "3",
          format: 0,
          id: 262,
          name: "Ab",
          message: "cc ",
          messageId: 33258,
          msgList: [],
          isTop: false,
          isNotTip: false,
          timestamp: 1656905765000,
          sourceId: "146",
          sourceType: 2,
          type: "group",
          state: 10,
          memberList: [
            {
              groupId: 146,
              uid: "00279c336a2a4d8091aa9ecba20450f6",
              type: 1,
              name: "王  洁",
            },
            {
              groupId: 146,
              uid: "ba06b43a97a74c0482bf247770f51598",
              type: 0,
              name: "杜锡兵",
            },
            {
              groupId: 146,
              uid: "04392fd3d3f949f4af3a195ce6933d32",
              type: 0,
              name: "赵梅俊",
            },
            {
              groupId: 146,
              uid: "d634de794e944816b684b4ea065aa8fc",
              type: 0,
              name: "何  燕",
            },
          ],
          refer: {
            id: "146",
            sourceId: "146",
            name: "Ab",
            type: "group",
          },
          uid: "00279c336a2a4d8091aa9ecba20450f6",
          hasAll: true,
        },
        {
          action: "3",
          format: 0,
          id: 245,
          name: "郭婷婷,何福顺,杜锡兵...群聊",
          message: "在 新款",
          messageId: 12006,
          msgList: [],
          isTop: false,
          isNotTip: true,
          timestamp: 1656485701000,
          sourceId: "124",
          sourceType: 2,
          type: "group",
          state: 0,
          memberList: [
            {
              groupId: 124,
              uid: "04392fd3d3f949f4af3a195ce6933d32",
              type: 1,
              name: "赵梅俊",
            },
            {
              groupId: 124,
              uid: "6829e19f640d4d1db0dcf042f2545c39",
              type: 0,
              name: "郭婷婷",
            },
            {
              groupId: 124,
              uid: "d15c55e16eda47e29f3c8e6aa7b6d982",
              type: 0,
              name: "何福顺",
            },
            {
              groupId: 124,
              uid: "ba06b43a97a74c0482bf247770f51598",
              type: 0,
              name: "杜锡兵",
            },
            {
              groupId: 124,
              uid: "5e4160cfe8dc442780d923c7b26bb939",
              type: 0,
              name: "周  乔",
            },
            {
              groupId: 124,
              uid: "d6761f43bb4c43e6b314062a34e6c386",
              type: 0,
              name: "罗茂学",
            },
            {
              groupId: 124,
              uid: "d634de794e944816b684b4ea065aa8fc",
              type: 0,
              name: "何  燕",
            },
            {
              groupId: 124,
              uid: "325c0b10f70f450fac620fe13b524cdc",
              type: 0,
              name: "鲁伯鹏",
            },
            {
              groupId: 124,
              uid: "00279c336a2a4d8091aa9ecba20450f6",
              type: 0,
              name: "王  洁",
            },
          ],
          refer: {
            id: "124",
            sourceId: "124",
            name: "郭婷婷,何福顺,杜锡兵...群聊",
            type: "group",
          },
          uid: "04392fd3d3f949f4af3a195ce6933d32",
          hasAll: true,
        },
        {
          action: "3",
          format: 3,
          id: 234,
          name: "赵梅君美群聊",
          message: "111111",
          messageId: 33142,
          msgList: [],
          isTop: false,
          isNotTip: true,
          timestamp: 1656839172000,
          sourceId: "117",
          sourceType: 2,
          type: "group",
          state: 11,
          memberList: [
            {
              groupId: 117,
              uid: "d634de794e944816b684b4ea065aa8fc",
              type: 1,
              name: "何  燕",
            },
            {
              groupId: 117,
              uid: "00279c336a2a4d8091aa9ecba20450f6",
              type: 0,
              name: "王  洁",
            },
            {
              groupId: 117,
              uid: "d15c55e16eda47e29f3c8e6aa7b6d982",
              type: 0,
              name: "何福顺",
            },
            {
              groupId: 117,
              uid: "ba06b43a97a74c0482bf247770f51598",
              type: 0,
              name: "杜锡兵",
            },
            {
              groupId: 117,
              uid: "6829e19f640d4d1db0dcf042f2545c39",
              type: 0,
              name: "郭婷婷",
            },
            {
              groupId: 117,
              uid: "d6761f43bb4c43e6b314062a34e6c386",
              type: 0,
              name: "罗茂学",
            },
            {
              groupId: 117,
              uid: "325c0b10f70f450fac620fe13b524cdc",
              type: 0,
              name: "鲁伯鹏",
            },
            {
              groupId: 117,
              uid: "5e4160cfe8dc442780d923c7b26bb939",
              type: 0,
              name: "周  乔",
            },
          ],
          refer: {
            id: "117",
            sourceId: "117",
            name: "赵梅君美群聊",
            type: "group",
          },
          uid: "d634de794e944816b684b4ea065aa8fc",
          hasAll: true,
        },
        {
          action: "0",
          format: 0,
          id: 227,
          name: "何福顺",
          message: "cccccc",
          messageId: 33283,
          msgList: [],
          isTop: true,
          isNotTip: false,
          timestamp: 1656916890000,
          sourceId: "d15c55e16eda47e29f3c8e6aa7b6d982",
          sourceType: 1,
          type: "user",
          state: 0,
          memberList: [],
          refer: {
            id: "d15c55e16eda47e29f3c8e6aa7b6d982",
            sourceId: "d15c55e16eda47e29f3c8e6aa7b6d982",
            name: "何福顺",
            type: "user",
          },
          hasAll: true,
        },
        {
          action: "3",
          format: 0,
          id: 222,
          name: "何福顺,何  燕",
          message: "fffff",
          messageId: 33257,
          msgList: [],
          isTop: false,
          isNotTip: false,
          timestamp: 1656902818000,
          sourceId: "131",
          sourceType: 2,
          type: "group",
          state: 0,
          memberList: [
            {
              groupId: 131,
              uid: "00279c336a2a4d8091aa9ecba20450f6",
              type: 1,
              name: "王  洁",
            },
            {
              groupId: 131,
              uid: "d15c55e16eda47e29f3c8e6aa7b6d982",
              type: 0,
              name: "何福顺",
            },
            {
              groupId: 131,
              uid: "d634de794e944816b684b4ea065aa8fc",
              type: 0,
              name: "何  燕",
            },
          ],
          refer: {
            id: "131",
            sourceId: "131",
            name: "何福顺,何  燕",
            type: "group",
          },
          uid: "00279c336a2a4d8091aa9ecba20450f6",
          hasAll: true,
        },
        {
          action: "302",
          format: 0,
          id: 221,
          name: "1111",
          message: "ba06b43a97a74c0482bf247770f51598",
          messageId: 31152,
          msgList: [],
          isTop: false,
          isNotTip: false,
          timestamp: 1656752383000,
          sourceId: "120",
          sourceType: 2,
          type: "group",
          state: 0,
          refer: {
            id: "120",
            sourceId: "120",
            name: "1111",
            type: "group",
          },
          uid: "0000",
          hasAll: true,
        },
        {
          action: "310",
          format: 0,
          id: 205,
          name: "郭婷婷,何福顺,杜锡兵...群聊",
          message: "33163",
          messageId: 33164,
          msgList: [],
          isTop: false,
          isNotTip: false,
          timestamp: 1656843743000,
          sourceId: "129",
          sourceType: 2,
          type: "group",
          state: 0,
          memberList: [
            {
              groupId: 129,
              uid: "04392fd3d3f949f4af3a195ce6933d32",
              type: 1,
              name: "赵梅俊",
            },
            {
              groupId: 129,
              uid: "6829e19f640d4d1db0dcf042f2545c39",
              type: 0,
              name: "郭婷婷",
            },
            {
              groupId: 129,
              uid: "d15c55e16eda47e29f3c8e6aa7b6d982",
              type: 2,
              name: "何福顺",
            },
            {
              groupId: 129,
              uid: "ba06b43a97a74c0482bf247770f51598",
              type: 2,
              name: "杜锡兵",
            },
            {
              groupId: 129,
              uid: "5e4160cfe8dc442780d923c7b26bb939",
              type: 0,
              name: "周  乔",
            },
            {
              groupId: 129,
              uid: "d6761f43bb4c43e6b314062a34e6c386",
              type: 0,
              name: "罗茂学",
            },
            {
              groupId: 129,
              uid: "d634de794e944816b684b4ea065aa8fc",
              type: 0,
              name: "何  燕",
            },
            {
              groupId: 129,
              uid: "325c0b10f70f450fac620fe13b524cdc",
              type: 0,
              name: "鲁伯鹏",
            },
            {
              groupId: 129,
              uid: "00279c336a2a4d8091aa9ecba20450f6",
              type: 0,
              name: "王  洁",
            },
          ],
          refer: {
            id: "129",
            sourceId: "129",
            name: "郭婷婷,何福顺,杜锡兵...群聊",
            type: "group",
          },
          uid: "04392fd3d3f949f4af3a195ce6933d32",
          hasAll: true,
        },
        {
          action: "3",
          badge: 1,
          newmsgcount: 1,
          format: 0,
          id: 200,
          name: "ceshi",
          message: "{微笑}",
          messageId: 22983,
          msgList: [],
          isTop: false,
          isNotTip: false,
          timestamp: 1656584796000,
          sourceId: "132",
          sourceType: 2,
          type: "group",
          state: 0,
          memberList: [
            {
              groupId: 132,
              uid: "00279c336a2a4d8091aa9ecba20450f6",
              type: 1,
              name: "王  洁",
            },
            {
              groupId: 132,
              uid: "d15c55e16eda47e29f3c8e6aa7b6d982",
              type: 0,
              name: "何福顺",
            },
          ],
          refer: {
            id: "132",
            sourceId: "132",
            name: "ceshi",
            type: "group",
          },
          uid: "00279c336a2a4d8091aa9ecba20450f6",
          hasAll: true,
        },
        {
          action: "0",
          badge: 35,
          newmsgcount: 35,
          format: 0,
          id: 152,
          name: "鲁伯鹏",
          message: "{哈哈}",
          messageId: 31136,
          msgList: [],
          isTop: false,
          isNotTip: true,
          timestamp: 1656752153000,
          sourceId: "325c0b10f70f450fac620fe13b524cdc",
          sourceType: 1,
          type: "user",
          state: 0,
          memberList: [],
          refer: {
            id: "325c0b10f70f450fac620fe13b524cdc",
            sourceId: "325c0b10f70f450fac620fe13b524cdc",
            name: "鲁伯鹏",
            type: "user",
          },
          hasAll: true,
        },
        {
          action: "0",
          format: 0,
          id: 148,
          name: "郭婷婷",
          message: "好",
          messageId: 33147,
          msgList: [],
          isTop: true,
          isNotTip: false,
          timestamp: 1656839709000,
          sourceId: "6829e19f640d4d1db0dcf042f2545c39",
          sourceType: 1,
          type: "user",
          state: 0,
          memberList: [],
          refer: {
            id: "6829e19f640d4d1db0dcf042f2545c39",
            sourceId: "6829e19f640d4d1db0dcf042f2545c39",
            name: "郭婷婷",
            type: "user",
          },
          hasAll: true,
        },
        {
          action: "0",
          format: 0,
          id: 140,
          name: "何  燕",
          message: "在我心里你是",
          messageId: 9894,
          msgList: [],
          isTop: false,
          isNotTip: true,
          timestamp: 1656322682000,
          sourceId: "d634de794e944816b684b4ea065aa8fc",
          sourceType: 1,
          type: "user",
          state: 0,
          memberList: [],
          refer: {
            id: "d634de794e944816b684b4ea065aa8fc",
            sourceId: "d634de794e944816b684b4ea065aa8fc",
            name: "何  燕",
            type: "user",
          },
          hasAll: true,
        },
        {
          id: 125,
          name: "杜锡兵",
          message: "我",
          msgList: [],
          isTop: false,
          isNotTip: false,
          timestamp: 1656295393911,
          sourceId: "ba06b43a97a74c0482bf247770f51598",
          sourceType: 1,
          type: "user",
          state: 0,
          memberList: [],
          refer: {
            id: "ba06b43a97a74c0482bf247770f51598",
            sourceId: "ba06b43a97a74c0482bf247770f51598",
            name: "杜锡兵",
            type: "user",
          },
          hasAll: true,
        },
        {
          action: "0",
          format: 0,
          id: 123,
          name: "赵梅俊",
          message: "存储",
          messageId: 33301,
          msgList: [],
          isTop: false,
          isNotTip: false,
          timestamp: 1656917786000,
          sourceId: "04392fd3d3f949f4af3a195ce6933d32",
          sourceType: 1,
          type: "user",
          state: 0,
          memberList: [],
          refer: {
            id: "04392fd3d3f949f4af3a195ce6933d32",
            sourceId: "04392fd3d3f949f4af3a195ce6933d32",
            name: "赵梅俊",
            type: "user",
          },
          hasAll: true,
        },
        {
          action: "0",
          badge: 18,
          newmsgcount: 18,
          format: 0,
          id: 124,
          name: "王  洁",
          message: "哦",
          messageId: 32640,
          msgList: [],
          isTop: false,
          isNotTip: false,
          timestamp: 1656822478000,
          sourceId: "00279c336a2a4d8091aa9ecba20450f6",
          sourceType: 1,
          type: "user",
          state: 0,
          memberList: [],
          refer: {
            id: "00279c336a2a4d8091aa9ecba20450f6",
            sourceId: "00279c336a2a4d8091aa9ecba20450f6",
            name: "王  洁",
            type: "user",
          },
          hasAll: true,
        },
      ];

      function calcReplyListSort(replyList, currentReply) {
        let currentReplyIndex = replyList.findIndex(
          (item) => item == currentReply
        );
        if (currentReplyIndex >= 0) {
          replyList.splice(currentReplyIndex, 1); // 先把自己删除
        }

        let isTopReplyList = replyList.filter((reply) => reply.isTop);
        let unTopReplyList = replyList.filter((reply) => !reply.isTop);

        let target;
        if (currentReply.isTop) {
          target = isTopReplyList;
        } else {
          target = unTopReplyList;
        }
        let index = target.findIndex(
          (item) => item.timestamp > currentReply.timestamp
        );
        index = index > -1 ? index : 0;
        target.splice(index, 0, currentReply);

        replyList = isTopReplyList.concat(unTopReplyList);
        return replyList;
      }

      for (let i = 0; i < arr.length; i++) {
        arr = calcReplyListSort(arr, arr[i]);
      }

      console.log(arr);
    </script>
  </body>
</html>
